package com.itheima.extends_demo.test;

public class Cat extends Animal {
    private int price;


    public Cat() {

    }

    public Cat(String color, String breed, int age) {
        super(color, breed, age);
    }

    public Cat(String color, String breed, int age, int price) {
        super(color, breed, age);
        this.price = price;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }


    @Override
    public void eat() {
        System.out.println("猫吃鱼...");
    }

    public void catchMouse() {
        System.out.println("猫抓老鼠...");
    }
}
